package com.handpay.zztong.hp.swiper.model.swiperstatus;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.zztong.hp.bean.ResponseBean;

/**
 * @author sxshi on 2017/2/21.
 *         刷卡器状态
 */

public class SwiperStatusBean extends ResponseBean implements Parcelable {
    private String status;
    private String message;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.status);
        dest.writeString(this.message);
    }

    public SwiperStatusBean() {
    }

    protected SwiperStatusBean(Parcel in) {
        this.status = in.readString();
        this.message = in.readString();
    }

    public static final Creator<SwiperStatusBean> CREATOR = new Creator<SwiperStatusBean>() {
        @Override
        public SwiperStatusBean createFromParcel(Parcel source) {
            return new SwiperStatusBean(source);
        }

        @Override
        public SwiperStatusBean[] newArray(int size) {
            return new SwiperStatusBean[size];
        }
    };

    @Override
    public String toString() {
        return "SwiperStatusBean{" +
                "status=" + status +
                ", message='" + message + '\'' +
                '}';
    }
}
